<?php

namespace app\model\not_del;

use think\Model;
use think\model\relation\HasMany;

/**
 * 量表问题表
 */
class RatingScaleQuestionModel extends Model
{
    protected $name = 'rating_scale_question';

    /**
     * 关联答案
     * @return HasMany
     */
    public function RatingScaleQuestionAnswer(): HasMany
    {
        return $this->hasMany(RatingScaleQuestionAnswerModel::class, 'question_id');
    }
}